#include "start.h"
#include "ui_start.h"
#include "game.h"

int offensiveMovePlayer=playerblack;

start::start(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::start)
{
    ui->setupUi(this);
}

start::~start()
{
    delete ui;
}

void start::on_pushButton_clicked()
{
    class game *g=new class game;
    g->show();
    this->hide();
}

void start::on_pushButton_2_clicked()
{
    QApplication *q;
    q->quit();
}

void start::on_radioButton_clicked(bool checked)
{
    if(checked){
        offensiveMovePlayer=playerblack;
        qDebug("offensiveMovePlayer:%d",offensiveMovePlayer);
    }
}

void start::on_radioButton_2_clicked(bool checked)
{

    if(checked){
        offensiveMovePlayer=playerwhite;
        qDebug("offensiveMovePlayer:%d",offensiveMovePlayer);
    }
}



